﻿using System;

using DC2010.Objects.Base;

namespace DC2010.Objects.Data
{
    [Serializable]
    public class ConditionInfo : BaseObject
    {
        public string Method { get; set; }

        public ConditionData CreateData()
        {
            ConditionData cd = new ConditionData();

            cd.InfoId = Id;
            cd.Id = cd.InfoId + "_" + Guid.NewGuid().ToString();
            Root.log.InfoFormat("Core, Created new object with id: {0} based on object {1}", cd.Id, cd.InfoId);
            Root.I.ConditionSystem.AddData(cd);

            //TODO: fill with other properties

            return cd;
        }
    }
}
